﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace VOL.WebApi.Controllers.Demo.echarts
{
    [Route("api/eacharts")]
    public class EachartsContoller : Controller
    {
        public EachartsContoller()
        {
        }

        [Route("getData"), HttpGet]
        public IActionResult GetData()
        {
            var data = new List<object>() {
                new { value=1048, name=".NetCore" },
                new { value=735, name="Dapper" },
                new { value=735, name="EntityFramework" },
                new {value=735, name="Redis" },
                new { value=735, name="Vue3.0" },
                new { value=580, name="Vuex" },
                new { value=484, name="Element plus" } 
            };

            return Json(data);
        }
    }
}
